<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link rel="stylesheet" href="css/tableCss.css" type="text/css" />
<style type="text/css">

</style>
</head>
<body>
	<table id="model_t" align="center">
		<tr style="height: 10px;">
			<td id="tth" colspan="8"><p id="thp">&nbsp;&nbsp;所有店铺</p></td>

		</tr>
		<tr>
			<td><p id="tdph">图片</p></td>
			<td><p id="tdph">店名</p></td>
			<td><p id="tdph">营业时间</p></td>
			<td><p id="tdph">地点</p></td>
			<td><p id="tdph">电话号</p></td>
			<td><p id="tdph">是否推荐</p></td>
			<td><p id="tdph">金额</p></td>
			<td><p id="tdph">操作</p></td>


		</tr>
		<s:iterator value="shops" var="sp" status="status">
			<tr>
				<td><img id="img" alt="店铺图片" src="<%=basePath%>${sp.shopPicture }"></td>
				<td><p id="tdp">${sp.shopName}</p></td>
				<td><p id="tdp">${sp.starTime}-${sp.endTime}</p></td>
				<td><p id="tdp">${sp.place}</p></td>
				<td><p id="tdp">${sp.phone}</p></td>
				<td><p id="tdp">
						<s:if test="#sp.recommend== 1">
						推荐 
					    
				    </s:if>
						<s:else>
						不推荐
					 </s:else>
					</p></td>
				<td>
					<p id="tdp">${sp.moneyTotal}</p>
				</td>
				<td><p id="tdp">
						<a href="editShopById?shop.id=${sp.id}"><img id="handle_img" src="<%=basePath%>/images/edit.gif"></a>  <a
							href="deleteShopById?shop.id=${sp.id}"><img id="handle_img" src="<%=basePath%>/images/delete.gif"></a> <a
							href="queryMenuInfo?shop.id=${sp.id}">管理菜谱</a>
					</p></td>

			</tr>
		</s:iterator>
		<tr>
			<td colspan="8"><p id="tdp"><a href="addShop.jsp">添加店鋪</a></p></td>
		</tr>
	</table>
</body>
</html>